import request from '@/utils/request'
// 修改密码接口
export function changepassword(param) {
    var data = {
        old_password: param.old_password,
        new_password: param.new_password,
        new_password_again: param.new_password_again
    }
    return request({
      url: '/user/update_password',
      method: 'get',
      params: data
    })
}

// 修改基本信息接口
export function setuserinfo(param) {
    var data = {
        realname: param.realname,
        tel: param.tel,
        email: param.email,
        idcard: param.idcard,
        note: param.note
    }
    return request({
        url: '/user/update_user_info',
        method: 'get',
        params: data
    })
}